import request from '@/utils/request'

// 查询机构分类列表
export function listOrgKinds(query) {
  return request({
    url: '/college/orgKinds/list',
    method: 'get',
    params: query
  })
}

// 查询机构分类详细
export function getOrgKinds(orgKindId) {
  return request({
    url: '/college/orgKinds/' + orgKindId,
    method: 'get'
  })
}

// 新增机构分类
export function addOrgKinds(data) {
  return request({
    url: '/college/orgKinds',
    method: 'post',
    data: data
  })
}

// 修改机构分类
export function updateOrgKinds(data) {
  return request({
    url: '/college/orgKinds',
    method: 'put',
    data: data
  })
}

// 删除机构分类
export function delOrgKinds(orgKindId) {
  return request({
    url: '/college/orgKinds/' + orgKindId,
    method: 'delete'
  })
}

// 导出机构分类
export function exportOrgKinds(query) {
  return request({
    url: '/college/orgKinds/export',
    method: 'get',
    params: query
  })
}
